package com.johnson.news.view;

import android.content.Context;
import android.util.AttributeSet;

import androidx.appcompat.widget.AppCompatEditText;

public class NoPasteEditText extends AppCompatEditText {
    public NoPasteEditText(Context context) {
        super(context);
    }

    public NoPasteEditText(Context context, AttributeSet attrs) {
        super(context, attrs);
    }

    @Override
    public boolean onTextContextMenuItem(int id) {
        if(id == android.R.id.paste){
            return true;
        }
        else {
            return super.onTextContextMenuItem(id);
        }
    }
}
